package cn.caixiong.org.service;

import cn.caixiong.basic.utils.PageList;
import cn.caixiong.org.domain.Employee;
import cn.caixiong.org.query.BaseQuery;

import java.util.List;

public interface IEmployeeService {
    //新增或修改
    void saveOrUpdata(Employee employee);
    //删除
    void deleteId(Long id);
    //查询所有
    List<Employee> findAll();
    //查询部门经理
    List<Employee> managerAll();
    //查询单个
    void findOne(Long id);
    //查询部门经理与上级部门
    PageList<Employee> findPage(BaseQuery query);

}
